unit UPesquisaItensLancamentoEstoque;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, Grids, DBGrids;

type
  TFPesquisaItemLancamentoEstoque = class(TForm)
    Label1: TLabel;
    DBGItens: TDBGrid;
    BtnFechar: TBitBtn;
    procedure BtnFecharClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure DBGItensDblClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FPesquisaItemLancamentoEstoque: TFPesquisaItemLancamentoEstoque;

implementation

uses LancamentoEstoque;

{$R *.dfm}

procedure TFPesquisaItemLancamentoEstoque.BtnFecharClick(Sender: TObject);
begin
  Close;
end;

procedure TFPesquisaItemLancamentoEstoque.FormCreate(Sender: TObject);
begin
  Self.Constraints.MaxHeight := 333;
  Self.Constraints.MinHeight := 333;

  Self.Constraints.MaxWidth  := 689;
  Self.Constraints.MinWidth  := 689;

end;

procedure TFPesquisaItemLancamentoEstoque.DBGItensDblClick(
  Sender: TObject);
begin
  BtnFechar.Click;
end;

procedure TFPesquisaItemLancamentoEstoque.FormShow(Sender: TObject);
begin
  DBGItens.DataSource := FLancamentoEstoque.DSItensMovimentoStoque;
end;

end.
